home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C++ source text
| default
| |
98%
| file
| C source text
| default
| |
97%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 73 | 6f 6e 65 77 73 2e 62 62 |Path: is|onews.bb|
|00000010| 6e 2e 68 70 2e 63 6f 6d | 21 68 70 62 62 6c 62 21 |n.hp.com|!hpbblb!|
|00000020| 6e 65 77 73 0a 46 72 6f | 6d 3a 20 4d 61 74 74 68 |news.Fro|m: Matth|
|00000030| 69 61 73 20 44 69 74 74 | 72 69 63 68 20 3c 6d 61 |ias Ditt|rich <ma|
|00000040| 74 74 69 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |tti>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2b 2b 0a 53 | comp.la|ng.c++.S|
|00000060| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 48 6f 77 20 |ubject: |Re: How |
|00000070| 74 6f 20 77 72 69 74 65 | 20 68 65 61 64 65 72 20 |to write| header |
|00000080| 66 69 6c 65 20 3f 0a 44 | 61 74 65 3a 20 32 36 20 |file ?.D|ate: 26 |
|00000090| 46 65 62 20 31 39 39 36 | 20 31 37 3a 35 32 3a 34 |Feb 1996| 17:52:4|
|000000a0| 32 20 47 4d 54 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |2 GMT.Or|ganizati|
|000000b0| 6f 6e 3a 20 48 65 77 6c | 65 74 74 2d 50 61 63 6b |on: Hewl|ett-Pack|
|000000c0| 61 72 64 20 43 6f 2e 0a | 4d 65 73 73 61 67 65 2d |ard Co..|Message-|
|000000d0| 49 44 3a 20 3c 34 67 73 | 73 31 61 24 70 31 63 40 |ID: <4gs|s1a$p1c@|
|000000e0| 68 70 62 62 6c 62 2e 62 | 62 6e 2e 68 70 2e 63 6f |hpbblb.b|bn.hp.co|
|000000f0| 6d 3e 0a 52 65 66 65 72 | 65 6e 63 65 73 3a 20 3c |m>.Refer|ences: <|
|00000100| 33 31 32 44 34 42 39 34 | 2e 37 39 35 37 40 68 6b |312D4B94|.7957@hk|
|00000110| 65 69 6e 2e 73 63 68 6f | 6f 6c 2e 6e 65 74 2e 68 |ein.scho|ol.net.h|
|00000120| 6b 3e 0a 4e 4e 54 50 2d | 50 6f 73 74 69 6e 67 2d |k>.NNTP-|Posting-|
|00000130| 48 6f 73 74 3a 20 74 72 | 61 62 61 6e 74 2e 62 62 |Host: tr|abant.bb|
|00000140| 6e 2e 68 70 2e 63 6f 6d | 0a 4d 69 6d 65 2d 56 65 |n.hp.com|.Mime-Ve|
|00000150| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|00000160| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|00000170| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|00000180| 61 73 63 69 69 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |ascii.Co|ntent-Tr|
|00000190| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|000001a0| 20 37 62 69 74 0a 58 2d | 4d 61 69 6c 65 72 3a 20 | 7bit.X-|Mailer: |
|000001b0| 4d 6f 7a 69 6c 6c 61 20 | 31 2e 31 4e 20 28 58 31 |Mozilla |1.1N (X1|
|000001c0| 31 3b 20 49 3b 20 48 50 | 2d 55 58 20 41 2e 30 39 |1; I; HP|-UX A.09|
|000001d0| 2e 30 37 20 39 30 30 30 | 2f 37 31 32 29 0a 54 6f |.07 9000|/712).To|
|000001e0| 3a 20 6b 77 6b 77 6f 6b | 35 40 68 6b 65 69 6e 2e |: kwkwok|5@hkein.|
|000001f0| 73 63 68 6f 6f 6c 2e 6e | 65 74 2e 68 6b 0a 58 2d |school.n|et.hk.X-|
|00000200| 55 52 4c 3a 20 6e 65 77 | 73 3a 33 31 32 44 34 42 |URL: new|s:312D4B|
|00000210| 39 34 2e 37 39 35 37 40 | 68 6b 65 69 6e 2e 73 63 |94.7957@|hkein.sc|
|00000220| 68 6f 6f 6c 2e 6e 65 74 | 2e 68 6b 0a 0a 22 4b 2e |hool.net|.hk.."K.|
|00000230| 20 57 2e 20 4b 77 6f 6b | 22 20 3c 6b 77 6b 77 6f | W. Kwok|" <kwkwo|
|00000240| 6b 35 40 68 6b 65 69 6e | 2e 73 63 68 6f 6f 6c 2e |k5@hkein|.school.|
|00000250| 6e 65 74 2e 68 6b 3e 20 | 77 72 6f 74 65 3a 0a 3e |net.hk> |wrote:.>|
|00000260| 48 65 6c 6c 6f 20 65 76 | 65 72 79 62 6f 64 79 3a |Hello ev|erybody:|
|00000270| 0a 3e 43 61 6e 20 79 6f | 75 20 74 65 6c 6c 20 6d |.>Can yo|u tell m|
|00000280| 65 20 74 68 61 74 20 68 | 6f 77 20 74 6f 20 77 72 |e that h|ow to wr|
|00000290| 69 74 65 20 61 0a 3e 68 | 65 61 64 65 72 20 66 69 |ite a.>h|eader fi|
|000002a0| 6c 65 20 3f 20 49 20 77 | 61 6e 74 20 74 6f 20 6c |le ? I w|ant to l|
|000002b0| 69 6e 6b 20 61 20 65 78 | 74 65 72 6e 61 6c 0a 3e |ink a ex|ternal.>|
|000002c0| 73 75 62 70 72 6f 67 72 | 61 6d 20 28 61 20 73 65 |subprogr|am (a se|
|000002d0| 74 20 66 75 6e 63 74 69 | 6f 6e 73 29 77 69 74 68 |t functi|ons)with|
|000002e0| 20 61 20 6d 61 69 6e 20 | 0a 3e 70 72 6f 67 72 61 | a main |.>progra|
|000002f0| 6d 2e 20 54 68 65 79 20 | 73 74 6f 72 65 64 20 69 |m. They |stored i|
|00000300| 6e 20 64 69 66 66 65 72 | 65 6e 74 20 66 69 6c 65 |n differ|ent file|
|00000310| 20 28 2a 2e 63 70 70 29 | 2e 0a 3e 43 61 6e 20 49 | (*.cpp)|..>Can I|
|00000320| 20 69 6e 63 6c 75 64 65 | 20 61 20 68 65 61 64 65 | include| a heade|
|00000330| 72 20 66 69 6c 65 20 69 | 6e 20 6d 61 69 6e 20 70 |r file i|n main p|
|00000340| 72 6f 67 72 61 6d 20 74 | 6f 0a 3e 63 61 6c 6c 20 |rogram t|o.>call |
|00000350| 74 68 69 73 20 73 75 62 | 70 72 6f 67 72 61 6d 20 |this sub|program |
|00000360| 3f 20 49 66 20 79 65 73 | 2c 20 68 6f 77 20 74 6f |? If yes|, how to|
|00000370| 20 64 6f 20 69 74 20 3f | 0a 0a 59 65 73 2e 20 57 | do it ?|..Yes. W|
|00000380| 72 69 74 65 3a 0a 23 69 | 6e 63 6c 75 64 65 20 22 |rite:.#i|nclude "|
|00000390| 66 6f 6f 2e 68 22 0a 0a | 54 68 65 20 68 65 61 64 |foo.h"..|The head|
|000003a0| 65 72 20 66 69 6c 65 20 | 6d 75 73 74 20 63 6f 6e |er file |must con|
|000003b0| 74 61 69 6e 20 61 6c 6c | 20 63 6c 61 73 73 20 64 |tain all| class d|
|000003c0| 65 63 6c 61 72 61 74 69 | 6f 6e 73 2e 20 55 73 65 |eclarati|ons. Use|
|000003d0| 20 70 72 65 70 72 6f 63 | 65 73 73 6f 72 0a 6d 61 | preproc|essor.ma|
|000003e0| 63 72 6f 73 20 74 6f 20 | 61 76 6f 69 64 20 6d 75 |cros to |avoid mu|
|000003f0| 6c 74 69 70 6c 65 20 69 | 6e 63 6c 75 64 65 73 3a |ltiple i|ncludes:|
|00000400| 0a 0a 23 69 66 6e 64 65 | 66 20 46 4f 4f 5f 48 0a |..#ifnde|f FOO_H.|
|00000410| 23 64 65 66 69 6e 65 20 | 46 4f 4f 5f 48 0a 0a 63 |#define |FOO_H..c|
|00000420| 6c 61 73 73 20 66 6f 6f | 0a 7b 0a 70 72 69 76 61 |lass foo|.{.priva|
|00000430| 74 65 3a 0a 20 20 69 6e | 74 20 78 3b 0a 20 20 2e |te:. in|t x;. .|
|00000440| 2e 2e 0a 70 72 6f 74 65 | 63 74 65 64 3a 0a 20 20 |...prote|cted:. |
|00000450| 2e 2e 2e 0a 70 75 62 6c | 69 63 3a 0a 20 20 66 28 |....publ|ic:. f(|
|00000460| 69 6e 74 29 3b 0a 20 20 | 2e 2e 2e 0a 7d 3b 0a 0a |int);. |....};..|
|00000470| 23 65 6e 64 69 66 0a 0a | 49 6e 63 6c 75 64 65 20 |#endif..|Include |
|00000480| 74 68 65 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |the head|er file |
|00000490| 61 73 20 74 68 65 20 66 | 69 72 73 74 20 69 6e 63 |as the f|irst inc|
|000004a0| 6c 75 64 65 20 69 6e 20 | 74 68 65 20 63 6f 72 72 |lude in |the corr|
|000004b0| 65 73 70 6f 6e 64 69 6e | 67 0a 69 6d 70 6c 65 6d |espondin|g.implem|
|000004c0| 65 6e 74 61 74 69 6f 6e | 20 66 69 6c 65 20 28 2a |entation| file (*|
|000004d0| 2e 63 70 70 29 2c 20 74 | 68 69 73 20 69 73 20 74 |.cpp), t|his is t|
|000004e0| 68 65 20 66 69 72 73 74 | 20 63 68 65 63 6b 20 69 |he first| check i|
|000004f0| 66 20 69 74 20 69 73 20 | 63 6f 72 72 65 63 74 2e |f it is |correct.|
|00000500| 0a 0a 47 6f 6f 64 20 6c | 75 63 6b 2c 0a 4d 61 74 |..Good l|uck,.Mat|
|00000510| 74 68 69 61 73 0a 0a | |thias.. | |
+--------+-------------------------+-------------------------+--------+--------+